import requests


class  ding_helper:
    def __init__(self) -> None:
        pass

    def send_msg(self, content, keywords = "【tqsdk】_"):
        """包含关键字 pro"""
        dingurl_xiaoce = "https://oapi.dingtalk.com/robot/send?access_token=82bc909d7890a6a62dc2a250df8eea25d6666b1360a79de0d61b08483774fb36"
        headers = {"Content-Type": "application/json"}
        jsonStr = {"msgtype": "text", "text": {"content": keywords + content}}
        res = requests.post(dingurl_xiaoce, json=jsonStr, headers=headers)
        return res